package prototype;

public class SimpleSensor {

	private boolean detected;

	public SimpleSensor() {
		detected = false;
	}

	public void setDetected(boolean b) {
		detected = b;
	}

	public boolean isDetected() {
		return detected;
	}
	
	public void detect() {
		detected = true;
		ForwardBehaviour.release();
	}
	
	public void undetect() {
		detected = false;
		StopBehaviour.release();
	}
}
